package com.cy.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.cy.entity.Type;
import com.cy.mapper.TypeMapper;

@Service
public class TypeService {
	@Autowired
	private TypeMapper mapper;
	
	public List<Type> findAllType() {
		return mapper.selectByExample(null);
	}
	
	public Type findTypeById(Integer id) {
		return mapper.selectByPrimaryKey(id);
	}
}
